{{ define "main" }}
<div class="row">
  <div class="col-12 col-md-9 col-lg-10">
    {{ .Content }}
  </div>
  {{- if not (strings.Contains .Permalink "static/") }}
  {{- $packageName := path.Dir .File.Dir }}
  <div class="col-12 col-md-3 col-lg-2 order-md-first text-break">
    <dl>
      <dt>Package</dt>
      <dd><a href="https://github.com/optuna/optunahub-registry/tree/main/package/{{ $packageName }}">{{ $packageName }}</a></dd>
      <dt>Author</dt>
      <dd>{{ .Params.author }}</dd>
      <dt>License</dt>
      <dd>{{ .Params.license }}</dd>
      <dt>Verified Optuna version</dt>
      <dd>
        <ul class="m-0 ps-0">
          {{- range (.GetTerms "optuna_versions") -}}
          <li class="d-inline me-1">{{ .LinkTitle }}</li>
          {{- end -}}
        </ul>
      </dd>
      <dt>Last update</dt>
      <dd>{{ time.Format "2006-01-02" (time.AsTime .Params.updated_at) }}</dd>
    </dl>
  </div>
  {{- end }}
</div>
{{ end }}
